package cn.exrick.xboot.modules.transport.entity;

import cn.exrick.xboot.base.XbootBaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * @author gj
 */
@Data
@Accessors(chain = true)
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "b_company_routes")
@TableName("b_company_routes")
@ApiModel(value = "物流公司线路信息")
public class CompanyRoutes extends XbootBaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "所属物流公司的ID")
    private Long companyId;

    @ApiModelProperty(value = "线路起运地区的ID")
    private Long originRegionId;

    @ApiModelProperty(value = "线路起运仓点的ID")
    private Long originWarehouseId;

    @ApiModelProperty(value = "线路目的地地区的ID")
    private Long destinationRegionId;

    @ApiModelProperty(value = "线路目的地仓点的ID")
    private Long destinationWarehouseId;

    @ApiModelProperty(value = "线路价格")
    private BigDecimal price;

    @ApiModelProperty(value = "低距离金额(小于20公里)")
    private BigDecimal shortDistancePrice;

    @ApiModelProperty(value = "中距离金额(20-40公里)")
    private BigDecimal mediumDistancePrice;

    @ApiModelProperty(value = "长距离金额(大于40公里)")
    private BigDecimal longDistancePrice;

    //todo 速度评价的业务逻辑还没有确认
    @ApiModelProperty(value = "线路速度评价，可选值：fast, medium, slow")
    private String speedRating;

}